home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / auxlib / aux_repaint_proc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-29  |  518 b   |  32 lines

  1. /*
  2. ### procedures for repainting combined space canvases ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/canvas.h>
  7.  
  8. void aux_repaint_proc(canvas,event,arg)
  9. Canvas canvas;
  10. Event *event;
  11. caddr_t arg;
  12. {
  13.     int resize,i;
  14.     extern int aux_win_i,aux_max;
  15.     extern Canvas *aux_canvas;
  16.  
  17.     for(i=0;i<aux_max;i++){
  18.         if(canvas == aux_canvas[i]){
  19.             aux_win_i = i;
  20.             break;
  21.         }
  22.     }
  23.     if(!(resize=(int)window_get(aux_canvas[aux_win_i],WIN_RESIZE))){
  24.         aux_redisplay_data(aux_win_i);
  25.     }
  26.     else{
  27.         /*
  28.         default_repaint();
  29.         */
  30.     }
  31. }
  32.